Lots of people try to proscribe (proscribe effectively means forbid) placing prepositions at the end of a sentence. In actual fact, either of your phrases are fine and you can pick which one sounds best to you, or in your situation. I would typically feel that it sounds better with the preposition mid sentence, but that's opinion and is unrequired.
The proscription apparently originated from the fact it was a lexical rule in latin.
In short, a preposition is definitely a sentence you can end a sentence with.