autocomplete list behavouir

Dirk Hohndel dirk at hohndel.org
Tue Oct 2 12:55:58 PDT 2012


Pierre-Yves Chibon <pingou at pingoured.fr> writes:
>> >
>> > Ok, I have a working POC (API only) which is available at:
>> > http://ambre.pingoured.fr/cgit/subsurface-companion.git/
>> >
>> > This is still very new so there is no problem to change things the way
>> > we want :)
>> 
>> Quick test shows this:
>> 
>> http://127.0.0.1:5000/newlogin
>> 
>> Not Found
>> 
>> The requested URL was not found on the server.
>> 
>> If you entered the URL manually please check your spelling and try
>> again.
>> 
>> (I am accessing this through a proxy, but the main page loads correctly,
>> so I don't think it's the proxy that messes things up...)
>
> Check
> http://127.0.0.1:5000/api 
> It's all nicely explained there ;-)

Hehe... what trigged me was that the links on http://127.0.0.1:5000 are
wrong.

How about this?


Fix URLs used in template/index.html

Signed-of-by: Dirk Hohndel <dirk at hohndel.org>

index 2ea927f..29131bf 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -17,9 +17,9 @@
 
   <p>Your options are:</p>
   <ul>
-    <li> Generate a new login, see: <a href="/newlogin">/newlogin</a></li>
-    <li> Upload a new dive, see: <a href="/dive/login/lat/long/name">/dive/login/lat/long/name</a></li>
-    <li> Download your dives, see: <a href="/mydives/login">/mydives/login</a></li>
+    <li> Generate a new login, see: <a href="/api/newlogin">/api/newlogin</a></li>
+    <li> Upload a new dive, see: <a href="/api/dive/login/lat/long/name">/api/dive/login/lat/long/name</a></li>
+    <li> Download your dives, see: <a href="/api/mydives/login">/api/mydives/login</a></li>
   </ul>
 
 {% endblock %}


More information about the subsurface mailing list