mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-04-30 23:05:35 +08:00
A previous commit
9b998f10ce
has been causing an error where routes were not defined.
This commit follows an established pattern and adds a spec to ensure
basic behavior is working correctly.
---------
Co-authored-by: Jarek Radosz <jradosz@gmail.com>
7 lines
183 B
Ruby
7 lines
183 B
Ruby
# frozen_string_literal: true
|
|
|
|
DiscourseUserNotes::Engine.routes.draw do
|
|
get "/" => "user_notes#index"
|
|
post "/" => "user_notes#create"
|
|
delete "/:id" => "user_notes#destroy"
|
|
end
|