I,m doing flask api with mongodb, in my routes i have this
api.add_resource(EventsApi, '/events/<event_id>')
where event_id is hex string generated by mongo when creating record in database.
My question is, can i have in routes something other than hex, so that my url looks like
.../event/event1
and not like
.../event/6009828c255dbb7078215830
thanks in advance
1.4m articles
1.4m replys
5 comments
57.0k users