discourse/plugins/discourse-user-notes/config/routes.rb
Joffrey JAFFEUX e991d3b2ad
FIX: ensures user notes routes are correctly defined (#34960)
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>
2025-09-24 20:45:16 +02:00

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